<?php
use yii\bootstrap\ActiveForm;

?>

<?php ActiveForm::begin();?>
<div class="clearfix">
<div class="pull-left pull-left-box" style="overflow-y: auto;overflow-x: hidden;border: 0;width: 49%;">
	<table class="choose useCard table table-striped" >
		<caption>可用消费卡</caption>
		<thead>
		<tr>
			<th>卡片名称</th>
			<th>剩余次数</th>
			<th>员工</th>
		</tr>
		</thead>
		<tbody>

		<?php foreach($listBeautycard as $k => $beautycard): ?>
		<tr>
			<td><?= $beautycard['card_name'] ?>&nbsp;&nbsp;</td>
			<td><span><?= $beautycard['remain_times'] ?>/<em><?= $beautycard['total_times'] ?></em></span></td>
			<td><a class="add" href="javascript:;" data-nid="<?= $k ?>" onclick="getCardlist('美容师选择','/business/server/employee?avg_consume_amount=<?= $beautycard['avg_consume_amount'] ?>&amp;c_id=<?= $beautycard['card_id'] ?>',<?= $k ?>)">添加</a>
			</td>
		</tr>
		<?php endforeach; ?>

		</tbody>
	</table>
</div>

<div class="pull-right pull-right-box " style="overflow-y: auto;overflow-x: hidden;border-right: 0;border-right: 0;width: 49%;">
	<table class="chooseHouse table table-striped text-center" >
		<caption style="border-top: 0;">选择房间</caption>
		<thead>
		<tr>
			<th class="text-center">房间</th>
		</tr>
		</thead>
		<tbody>

		<?php foreach($roomList as $room): ?>
			<tr>
				<td>
					<input class="hidden" name="room_id" type="radio" value="<?= $room['config_id'] ?>"/><?= $room['config_val'] ?><?php if($room['service_id']): ?><span style="color: #fe7b9d">&nbsp;(已占用)</span><?php endif; ?>
					<input class="hidden" name="room_name" type="radio" value="<?= $room['config_val'] ?>"/>
				</td>
			</tr>
		<?php endforeach; ?>

		</tbody>
	</table>
</div>
</div>

	<div style="padding: 8px 10px;">服务记录</div>
	<textarea name="service_remark" placeholder="记录用户使用产品情况，备注等" style="width: 100%;height: 180px; max-width: 100%; max-height: 180px; overflow: hidden;"></textarea>

	<span class="btnBg" style=" color: #fff;border-radius: 6px;margin-left: 460px;margin-top: 10px; margin-bottom: 10px; ">
		<input type="submit" value="确定" onclick=" return check()" style="display: block; width: 100%; background: 0; border:0;line-height: 36px;">
	</span>
<?php ActiveForm::end() ?>

<?php $this->registerJsFile("@web/system/server/register.js",['position'=>$this::POS_END]);?>
